<template>
  <Poptip
    confirm
    trigger="focus"
    :title="working.removeNotice"
    @on-ok="$emit('on-ok')"
    placement="left-start"
    :option="{eventsEnabled:!working.removes}"
  >
    <Button
      :loading="working.removes"
      icon="ios-trash-outline"
      type="dashed"
      :disabled="disabled"
    >批量删除</Button>
  </Poptip>
</template>

<script>
export default {
  props: {
    working: {
      type: Object,
      required: true
    },
    disabled: {
      type: Boolean,
      required: true
    }
  }
};
</script>
